const state = {
  orderRefresh: false,
  deliverfresh: false,
  rejectRefresh: false,
}

const getters = {
  getOrderRefresh(state) {
    return state.orderRefresh
  },
	getDeliverRefresh(state) {
	  return state.deliverfresh
	},
	getRejectRefresh(state) {
	  return state.rejectRefresh
	}
}

const mutations = {
  SET_ORDERREFRESH(state, orderRefresh) {
    state.orderRefresh = orderRefresh
  },
  SET_DELIVERREFRESH(state, deliverfresh) {
    state.deliverfresh = deliverfresh
  },
  SET_REJECTREFRESH(state,rejectRefresh) {
    state.rejectRefresh = rejectRefresh
  }
}

const actions = {
  setOrderRefresh({
    commit
  }, orderRefresh) {
    commit("SET_ORDERREFRESH", orderRefresh)
  },
  setDeliverRefresh({
    commit
  }, deliverRefresh) {
    commit("SET_DELIVERREFRESH", deliverRefresh)
  },
  setRejectRefresh({
    commit
  }, rejectRefresh) {
    commit("SET_REJECTREFRESH", rejectRefresh)
  }
}

export default {
  namespaced: true,
  state,
  mutations,
  actions,
  getters
}
